@import "color";

//path
@import "../plugin/plugin";

html {
  font-size: 10px;
}

body {
  font-size: 1.4rem;
  text-size-adjust: 100% !important;
}



.dux-stat-widget {
  padding: 1.5rem;

  .media-icon {
    float: left;
    height: 64px;
    width: 64px;
    line-height: 64px;
    color: #fff;
    text-align: center;
    border-radius: 50%;
  }

  .media-body {
    height: 64px;

    h1 {
      margin-bottom: 1rem;
    }

    text-align: right;

    p {
      margin: 0;
    }
  }
}

.dux-field-inline {
  display: inline-block !important;
  width: auto !important;
}

.dux-field-sm {
  width: 50px !important;
}

.dux-field-md {
  width: 100px !important;
}

.dux-field-lg {
  width: 150px !important;
}

.dux-spec-group {
  input[type=text] {
    min-width: 60px;
    max-width: 100px;
  }

  .spec-list {
    display: flex;
    flex-wrap: wrap;
    .list-item {
      display: block;
      padding: 5px;
    }
    .list-add {
      padding: 5px;
    }

    @media screen and (max-width: 641px) {

      .list-add,
      .list-item {
        width: auto;
      }

    }

  }
}

.dux-dialog-foot {
  border-top: 1px solid #ddd;
  padding: 10px;
  text-align: right;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
}




.dux-loading {
  .loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5000;
    background:rgba(0,0,0, 0);
  }

  .loading-body {
    position: fixed;
    z-index: 5001;
    width: 8em;
    min-height: 6em;
    top: 180px;
    left: 50%;
    margin-left: -4em;
    background: rgba(17, 17, 17, 0.7);
    text-align: center;
    border-radius: 5px;
    color: #FFFFFF;
    .loading-icon {
      margin: 10px 0 0;
      width: 38px;
      height: 38px;
      display: inline-block;
      vertical-align: baseline;
      -webkit-animation: weuiLoading 1s steps(12, end) infinite;
      animation: weuiLoading 1s steps(12, end) infinite;
      background: transparent url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E") no-repeat;
      background-size: 100%;
    }

    .loading-msg {
      margin: 0 0 10px;
    }
  }
}


@keyframes weuiLoading {
  0% {
    transform: rotate3d(0, 0, 1, 0deg);
  }

  100% {
    transform: rotate3d(0, 0, 1, 360deg);
  }
}


@keyframes msg-up {
  0% {
    opacity: 0;
    -webkit-transform: translateY(800px);
    transform: translateY(800px)
  }

  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0)
  }
}

.dux-msg-layout {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: table;
  pointer-events: none;
  z-index: 88888888;

  .dux-msg {
    display: table-cell;
    vertical-align: middle;
    text-align: center;

    .text {
      width: auto;
      max-width: 90%;
      margin: 0 auto;
      background-color: rgba(0, 0, 0, .7);
      font-size: 14px;
      border-radius: 5px;
      box-shadow: 0 0 8px rgba(0, 0, 0, .1);
      color: #fff;
      position: relative;
      display: inline-block;
      text-align: left;
      padding: 10px 20px;
      animation-duration: .2s;
      animation-name: msg-up;
    }

  }
}

.dux-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


.dux-flex {
  display: flex !important;

  .flex-1 {
    flex: 1 !important;
  }
}

.dux-table {
  p {
    color: #999;
  }
}

.dux-ajax-more {
  font-size: 14px;
  text-align: center;
  padding: 10px;

  .loading {
    display: inline-block;
    height: 14px;
    width: 14px;
    border-radius: 100%;
    margin-top: -4px;
    margin-right: 2px;
    border: 2px solid #999;
    border-bottom-color: transparent;
    vertical-align: middle;
    -webkit-animation: rotate 0.75s linear infinite;
    animation: rotate 0.75s linear infinite;
  }

  @-webkit-keyframes rotate {
    0% {
      -webkit-transform: rotate(0deg);
    }

    50% {
      -webkit-transform: rotate(180deg);
    }

    100% {
      -webkit-transform: rotate(360deg);
    }
  }

  @keyframes rotate {
    0% {
      transform: rotate(0deg);
    }

    50% {
      transform: rotate(180deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }
}


.dux-popup-fixed {
  visibility: hidden;

  .dux-popup-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    display: none;
  }

  .dux-popup {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 50%;
    width: 100%;
    transform: translate3d(-50%, 100%, 0);
    transform-origin: center;
    transition: all 0.3s ease;
    z-index: 1001;
    opacity: 0;
    background-color: #fff;
    .popup-title {
      width: 100%;
      height: 43px;
      border-bottom: 1px solid #dedede;
      background-color: #fff;
      .title {
        text-align: center;
        font-size: 1.6rem;
        display: block;
        line-height: 43px;
      }
     .close {
       position: absolute;
       display: block;
       top: 5px;
       right: 10px;
       cursor: pointer;
       font-size: 2.2rem;
       opacity: .2;
     }
    }
    .popup-body {
      width: 100%;
      bottom: 0;
      -webkit-overflow-scrolling: touch;
      overflow-y: auto;
      height: 400px;
    }
  }
}

.dux-popup-active {
  visibility: visible;

  .dux-popup {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }

  .dux-popup-mask {
    display: block;
  }
}

.dux-popup-center {
  .dux-popup {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: auto;
    transform: translate3d(-50%, -50%, 0);
  }

  &.dux-popup-active {
    .dux-popup {
      transform: translate3d(-50%, -50%, 0);
    }
  }
}